function loader(div,page,params)
{
	$("#"+div).dialog('close');
	$("#"+div).dialog('open');
	$("#"+div).html( "loading..." );

	var request = $.ajax({
	  url: page,
	  type: "POST",
	  data: params,
	  cache: false
	});

	request.done(function(html) {
	  $("#"+div).html( html );
	});

	request.fail(function(jqXHR, textStatus) {
	  alert( "Request failed: " + textStatus );
	});
}
